package com.chixing.Homework.Order1;

//个人订单
public class PersonOrder implements OrderApi {
    //该类的一些属性
    private String personOrderName;
    private String PersonOrderId;
    private int  productNum;

    public String getPersonOrderName() {
        return this.personOrderName;
    }

    public void setPersonOrderName(String personOrderName) {
        this.personOrderName = personOrderName;
    }

    public String getPersonOrderId() {
        return PersonOrderId;
    }

    public void setPersonOrderId(String personOrderId) {
        PersonOrderId = personOrderId;
    }

    public int getProductNum() {
        return productNum;
    }

    public void setProductNum(int productNum) {
        this.productNum = productNum;
    }

    //重写toString方法
    @Override
    public String toString() {
        return "PersonOrder{" +
                "个人订单名字='" + personOrderName + '\'' +
                ", 个人订单号='" + PersonOrderId + '\'' +
                ", 产品数量=" + productNum +
                '}';
    }


    @Override
    public int getProdectNum() {
        return 0;
    }

    @Override
    public void setProdectNum(int num) {

    }
}
